package com.wingscode.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wingscode.common.validator.group.AddGroup;
import com.wingscode.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 招标link
 *
 * @author yan
 */
@Data
@TableName("inquiry_link")
public class InquiryLinkEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId
	private Long Id;

	/**
	 * 招标id
	 */
	@NotNull(message="inquiryId不能为空", groups = {AddGroup.class, UpdateGroup.class})
	@TableField("inquiry_id")
	private Integer inquiryId;

	/**
	 * 资质id
	 */
	@NotNull(message="buildQualId不能为空", groups = {AddGroup.class, UpdateGroup.class})
	@TableField("build_qual_id")
	private Integer buildQualId;

	/**
	 * 资质类型（1-升级后的资质）
	 */
	private Integer type;

	/**
	 * 价格
	 */
	private BigDecimal price;

	/**
	 * 资质名称id
	 */
	@TableField(exist = false)
	private Integer buildQualNameId;

	/**
	 * 等级
	 */
	@TableField(exist = false)
	private Integer grade;

	@TableField(exist = false)
	private String buildQualName;

	@TableField(exist = false)
	private String gradeName;
}
